package cn.ranko.api.action;

import cn.ranko.api.model.Demo;
import cn.ranko.api.service.DemoService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zhujun on 2016/8/11.
 */
@Controller
@RequestMapping(value = "/api-demo",name = "DEMO示例ACTION")
public class DemoAction {

    @Autowired
    DemoService demoService;

    @RequestMapping(name = "测试接口",value = "/test.action",method = RequestMethod.GET)
    @ResponseBody
    public Demo test(String test,String www){
        return demoService.selectDB();
    }



}
